package net.wsnetwork.jawa.master;

import java.io.Serializable;
import java.net.InetAddress;
import java.util.Date;

public class BackendInfo implements Serializable {
    private static final long serialVersionUID = 1877485558626259019L;
    private final int minBucket;
    private final int maxBucket;
    private final InetAddress address;
    private final Date lastPingTime;

    public BackendInfo(int minBucket, int maxBucket, InetAddress address) {
        super();
        this.minBucket = minBucket;
        this.maxBucket = maxBucket;
        this.address = address;
        this.lastPingTime = new Date();
    }

    public int getMinBucket() {
        return minBucket;
    }

    public int getMaxBucket() {
        return maxBucket;
    }

    public InetAddress getAddress() {
        return address;
    }

    public Date getLastPingTime() {
        return lastPingTime;
    }
}
